<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="java.util.List,java.util.Map;" %>
<%@ taglib uri="/WEB-INF/c.tld" prefix="c" %> 
<div class="toolbar">
</div>

<table cellpadding="0" cellspacing="0" border="0" class="dataTable cell-border">
	<thead>
		<tr>
			<th>流程标题</th>
			<th>发布状态</th>
		</tr>
	</thead>
	<tbody>
	<c:forEach var="e" items="${es }">
		<c:set var="entry" value="${e }" scope="request"/>
		<tr id="${e.t_id }" >
			<td><a class="wf-edit" href="<%=request.getContextPath()%>/c?s=wf&o=form&p=edit&key=${e.t_id}">${e.t_title }</a></td>
			<td>${e.t_status }</td>
		<tr>
	</c:forEach>
		
	</tbody>
</table>
<script>
$(".wf-edit").live("click",function(){
	$.get($(this).attr("href"),function(html){
		$("#TPL .tpl-title").text("编辑工作流");
		$("#TPL .content").html(html);
	});
	return false;
});

$(".dataTable").dataTable(datatable_config);
</script>